import { createApp } from 'vue'
import { createPinia } from 'pinia'
const pinia = createPinia()

// 一般用于整体布局
import App from './App2.vue'

// 设置路由
import router from './router/index2'

// 加载其他插件

// UI库
import ElementPlus from 'element-plus'
// import 'element-plus/lib/theme-chalk/index.css'
// import 'dayjs/locale/zh-cn'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

createApp(App)
  .use(pinia)
  .use(router)
  .use(ElementPlus, { locale: zhCn, size: 'small' }) // UI库
  .use(pinia)
  .mount('#app')
